<%--
  Created by IntelliJ IDEA.
  User: admin
  Date: 2023/3/29
  Time: 8:48
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>article page</title>
    <style>
        div {
            border: #ddd solid 1px;
        }
        textarea{
            width:100%;
            height:100px;

        }
    </style>
</head>
<body>
<h1>article page</h1>
<hr>
<h3>${sessionScope.article.title}</h3>
<p>${sessionScope.article.time}</p>
<div>${sessionScope.article.content}</div>
<hr>
<form action="/comment/signIn">
    <input type="hidden" name="userId" value="${sessionScope.article.userId}">
    <input type="hidden" name="articleId" value="${sessionScope.article.id}">
    <textarea name="content" placeholder="content:"></textarea>
    <input type="submit" value="sign in">
</form>
<hr>
<div>${sessionScope.comment.content}</div>
<h1>
    ${sessionScope.user.username}
</h1>
</body>
</html>
